package com.feynman.pattern.decorator.battercake.v2;

public class BattercakeDecoratorTest {
    public static void main(String[] args) {
        Battercake battercake;
        battercake = new BaseBattercake();

        battercake = new EggDecorator(battercake);

        battercake = new EggDecorator(battercake);

        battercake = new SuasageDecorator(battercake);

        System.out.println(battercake.getMsg()+", 总价格："+battercake.getPrice());

    }

}
